import request from '@/utils/request'

/**
* 关重件扫描验证关系分页查询
* @param {查询条件} data
*/
export function listMESSCANKEYSRELATION(query) {
  return request({
    url: 'base/relation/list',
    method: 'get',
    params: query,
  })
}
// export function getscanKeysRelationFindId(id) {
//   return request({
//     url: '/set/model/getscanKeysRelationFindId/'+id,
//     method: 'get',
//     params: id,
//   })
// }
// 导出关重件扫描验证关系
export function exportMESSCANKEYSRELATION(query) {
  return request({
    url: 'base/relation/export',
    method: 'get',
    params: query
  })
}

/**
* 新增关重件扫描验证关系
* @param data
*/
export function addMESSCANKEYSRELATION(data) {
  return request({
    url: 'base/relation',
    method: 'post',
    data: data,
  })
}

/**
* 修改关重件扫描验证关系
* @param data
*/
export function updateMESSCANKEYSRELATION(data) {
  return request({
    url: 'base/relation',
    method: 'PUT',
    data: data,
  })
}

/**
* 获取关重件扫描验证关系详情
* @param {Id}
*/
export function getMESSCANKEYSRELATION(id) {
  return request({
    url: 'base/relation/' + id,
    method: 'get'
  })
}

/**
* 删除关重件扫描验证关系
* @param {主键} pid
*/
export function delMESSCANKEYSRELATION(pid) {
  return request({
    url: 'base/relation/' + pid,
    method: 'delete'
  })
}


